<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--分页样式-->
    <link rel="stylesheet" type="text/css" href="../../frame/css/page.css">
    <link rel="stylesheet" type="text/css" href="../../frame/fonts/iconfont.css">
    <link rel="stylesheet" type="text/css" href="../../frame/layui/css/layui.css">
    <link rel="stylesheet" href="../../frame/layer-v2.0/skin/layer.css">
    <link rel="stylesheet" type="text/css" href="../../frame/css/common.css">
    <link rel="stylesheet" type="text/css" href="../../frame/css/ThemeManager.css">
    <link href="../../frame/angular/ui/animate/nga.all.min.css" rel="stylesheet" type="text/css"/>
    <link href="../../frame/angular/css/common.css" rel="stylesheet" type="text/css"/>
    <script src="../../javascript/jquery-1.9.1.min.js"></script>
    <script src="../../frame/layer-v2.0/layer.js"></script>
    <script src="../../frame/angular/base/angular.js" type="text/javascript"></script>
    <script type="text/javascript"
            src="../../frame/angular/ui/tm.pagination/tm.pagination.js"></script>
    <script src="../../js/angPro/5-24user.js"></script>
</head>
<body ng-app="userApp" ng-controller="userCtrl">
<div class="layui-layout layui-layout-admin" id="main">
    <!--top-->
    <div class="top">
    </div>
    <!--left-->
    <div class="left">
    </div>
    <div class="layui-body clearfix">
        <!-- 内容主体区域 -->
        <div class="common_box">
            <div class="content_table content_table3">
                <!--主题搜索-->
                <div class="common_box">
                    <div class="common_box_title clearfix">
                        <p class="common_title_name">管理员搜索</p>
                    </div>
                    <div class="common_box_con">
                        <div class="search_box" id="search_box">
                            <ul class="clearfix">
                                <li class="clearfix">
                                    <p class="search_name">姓名:</p>
                                    <input type="text" ng-model="params.name" class="text text_red" placeholder="">
                                </li>
                                <li class="clearfix">
                                    <p class="search_name">手机号:</p>
                                    <input type="text" ng-model="params.mobile" class="text text_red" placeholder="">
                                </li>

                                <li class="clearfix">
                                    <p class="search_name">角色:</p>
                                    <select name="" id="" class="text_red">
                                        <option value="">全部</option>
                                    </select>
                                </li>
                                <li class="clearfix" style="width: 16%;">
                                    <a href="" class="btn_default_m" ng-click="search()">查询</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="common_box">
            <div class="content_table2">
                <div class="common_box_title clearfix">
                    <p class="common_title_name">用户列表</p>
                    <ul class="clearfix operation">
                        <li><a class="btn_default_xz pop_prompt_btn16" ng-click="edit()">新增</a></li>
                        <li><a class="btn_default_m" ng-click="batchDel()">批量删除</a></li>
                    </ul>
                </div>
                <div class="common_box_con">
                    <div class="table">
                        <table width="100%">
                            <thead>
                            <tr>
                                <td class="table_number"><input id="checkAllId" type="checkbox"
                                                                ng-checked="isCheckContentAll"
                                                                ng-model="isCheckContentAll"
                                                                class="chk_1"></td>
                                <td>序号</td>
                                <td>姓名</td>
                                <td>账号</td>
                                <td>身份证</td>
                                <td>性别</td>
                                <td>角色</td>
                                <td>邮箱</td>
                                <td>电话</td>
                                <td>所属部门</td>
                                <td>状态</td>
                                <td>审核状态</td>
                                <td>时间</td>
                                <td class="table_operation">操作</td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="d in page.content">
                                <td class="table_number"><input ng-checked="false" ng-click="checkContent()"
                                                                type="checkbox"></td>
                                <td ng-bind="$index+1"></td>
                                <td ng-bind="d.perName"></td>
                                <td ng-bind="d.account"></td>
                                <td ng-bind="d.citID|sub" title="{{d.citID}}"></td>
                                <td ng-bind="d.sexCode===1?'男':'女'"></td>
                                <td ng-bind="d.role===1?'领导':'普通员工'"></td>
                                <td ng-bind="d.email"></td>
                                <td ng-bind="d.mobile"></td>
                                <td ng-bind="d.department.name"></td>
                                <td ng-bind="d.useMark===1 ? '启用' : '禁用'"></td>
                                <td title="{{d.approveStatus}}" ng-bind="d.approveStatus"></td>

                                <td ng-bind="d.addDateTime|date:'yyyy-MM-dd hh:mm:ss'"></td>
                                <td class="table_operation">
                                    <a class="iconfont icon-bianji" ng-click="edit(d.id)" title="编辑"></a>
                                    <a class="iconfont icon-shanchu" title="删除" ng-click="delete(d.id)"></a>
                                    <a ng-class="d.useMark===1?'iconfont icon-guanzhu':'iconfont icon-duigou'"
                                       title="{{d.useMark===1?'禁用':'启用'}}" ng-click="changeStatus(d.id,d.useMark)"></a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!--jump-->
                <tm-pagination conf="page"></tm-pagination>
            </div>
        </div>
    </div>
</div>
<!--footer-->
<!--<div class="bottom">

</div>-->
<!--弹出层-->
<div class="pop  pop_prompt3 user" style="display: none">
    <table class="pop_table" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="pop_td">
                <div class="pop_box layer_v">
                    <a class="pop_close iconfont icon-guanbi"></a>
                    <div class="pop_title" ng-bind="headName"></div>
                    <div class="pop_con">
                        <div class="table_from">
                            <table width="100%">
                                <tr>
                                    <td class="table_from_left">姓名：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            <input type="text" ng-model="name" class="text text_red"/>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">账号：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con condition_prompt_green">
                                            <span>*</span>
                                            <input type="text " ng-model="account" class="text text_red">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">身份证：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            <input type="text" ng-model="citID" class="text text_red"/>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">性别：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con condition_prompt_green">
                                            <span>*</span>
                                            男<input type="radio" ng-model="sex" name="sex" value="1"/>
                                            女<input type="radio" ng-model="sex" name="sex" value="2"/>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">角色：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            领导<input type="radio" ng-model="role" name="role" value="1"/>
                                            普通员工<input type="radio" ng-model="role" name="role" value="2"/>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">邮箱：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con condition_prompt_green">
                                            <span>*</span>
                                            <input type="text " ng-model="email" class="text text_red">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">电话：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            <input type="text" ng-model="mobile" class="text text_red"/>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">所属部门：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            <select style="width: 320px;height: 40px" ng-model="dep"
                                                    ng-options="d.id as d.name for d in depList">
                                                <option value="">请选择</option>
                                            </select>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_from_left">状态：</td>
                                    <td class="table_from_right">
                                        <div class="condition_con ">
                                            <span>*</span>
                                            启用<input type="radio" ng-model="useMark" name="status" value="1"/>
                                            禁用<input type="radio" ng-model="useMark" name="status" value="0"/>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <span style="padding-left: 30px;color: red" ng-bind="errMsg"></span>
                    <div class="pop_btn">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td><a class="btn_default_m pop_prompt_btn4" ng-click="submit()">确定</a></td>
                                <td><a class="btn_border_m">取消</a></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</div>

<script>
    $(".top").load("../common/top.html");
    $(".left").load("../common/left.html");
    // $(".bottom").load("bottom.html");
</script>
</body>
</html>